package com.huluobo.a2111douyindemo.home.tabItem;

import com.flyco.tablayout.listener.CustomTabEntity;

/**
 * Created by LC on 2024/2/26.
 */
public class TabEntity implements CustomTabEntity {
    private String title;//tab的标题
    private int selectIcon;//选中时候tab的图标
    private int unSelectIcon;//未选中tab的图标

    public TabEntity(String title, int selectIcon, int unSelectIcon) {
        this.title = title;
        this.selectIcon = selectIcon;
        this.unSelectIcon = unSelectIcon;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return selectIcon;
    }

    @Override
    public int getTabUnselectedIcon() {
        return unSelectIcon;
    }
}
